package com.study.common;

/**
 * @program: leetcode
 * @author: jzhou
 * @date: 2022-11-14 13:54
 * @version: 1.0
 * @description: 树对象
 **/
public class TreeNode {
    public int val;
    public TreeNode left;
    public TreeNode right;
    public int deep;

    public TreeNode() {
    }

    public TreeNode(int val) {
        this.val = val;
    }

    public TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }

    public void setDeep(int deep) {
        this.deep = deep;
    }
}
